#!/usr/bin/env python
# -*- coding:utf-8 -*-

from flask_restful import Api

from . import usercounselor_blueprint
from api.userCounselorResource.userCounselorResource import UserCounselorResource
from api.userCounselorResource.userCounselorOtherResource import UserCounselorOtherResource

api = Api(usercounselor_blueprint)

api.add_resource(UserCounselorResource, '/userCounselor/<user_id>', '/userCounselor', endpoint='UserCounselor')


@usercounselor_blueprint.route('/usercounselor/update/<user_id>', methods=['PUT'], endpoint='UserCounselorUpdate')
def update(user_id):
    return UserCounselorOtherResource.sensitive_update(user_id)
